From 5b27c1cdd6e39cc11e3701b3204ee0423c97ba80 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Mon, 4 Aug 2014 16:20:03 +0200 Subject: [PATCH] Install gpsbabel.html only. Remove php-ized htmldoc folder. The whole documentation is available as pdf anyway. Closes: #755457 Thanks: Axel Beckert --- debian/gpsbabel-doc.doc-base-common | 4 ++-- debian/gpsbabel-doc.doc-base-pdf | 2 +- debian/rules | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/debian/gpsbabel-doc.doc-base-common b/debian/gpsbabel-doc.doc-base-common index 9a5224ad8..68cc45d9d 100644 --- a/debian/gpsbabel-doc.doc-base-common +++ b/debian/gpsbabel-doc.doc-base-common @@ -3,6 +3,6 @@ Title: gpsbabel filter and format documentation Section: Science/Geoscience Format: HTML -Index: /usr/share/doc/gpsbabel/htmldoc/index.html -Files: /usr/share/doc/gpsbabel/htmldoc/*.html +Files: /usr/share/doc/gpsbabel/gpsbabel.html +Index: /usr/share/doc/gpsbabel/gpsbabel.html diff --git a/debian/gpsbabel-doc.doc-base-pdf b/debian/gpsbabel-doc.doc-base-pdf index c2544cd4f..25c5b5b9e 100644 --- a/debian/gpsbabel-doc.doc-base-pdf +++ b/debian/gpsbabel-doc.doc-base-pdf @@ -1,3 +1,3 @@ Format: PDF -Files: /usr/share/doc/gpsbabel/gpsbabel.pdf.gz +Files: /usr/share/doc/gpsbabel/gpsbabel.pdf diff --git a/debian/rules b/debian/rules index eff130d9e..b89f7a710 100755 --- a/debian/rules +++ b/debian/rules @@ -81,14 +81,17 @@ endif # We need a gpsbabel binary to build the documentation. build-doc-stamp: build-stamp - $(MAKE) -C gpsbabel $(DOCTEMP)/htmldoc-devel/index.html WEB=$(DOCTEMP) DOCVERSION=devel + mkdir -p debian/doctmp/htmldoc-devel + cd gpsbabel && perl xmldoc/makedoc && cd .. + $(MAKE) -C gpsbabel gpsbabel.html + cp gpsbabel/gpsbabel.html debian/doctmp cp $(CURDIR)/debian/gpsbabel-doc.doc-base-common $(CURDIR)/debian/gpsbabel-doc.doc-base ifneq (mips,$(HOSTARCH)) $(MAKE) -C gpsbabel gpsbabel.pdf WEB=$(DOCTEMP) DOCVERSION=devel - rm -f $(CURDIR)/$(DOCTEMP)/htmldoc-devel/gpsbabel-$(DOCVERSION).pdf DOCVERSION=devel cp gpsbabel/gpsbabel.pdf $(DOCTEMP) cat $(CURDIR)/debian/gpsbabel-doc.doc-base-pdf >> $(CURDIR)/debian/gpsbabel-doc.doc-base endif + rm -rf debian/doctmp/htmldoc-devel touch $@ build-gui: build-gui-stamp @@ -141,9 +144,6 @@ install-arch: $(BUILD_TARGETS_ARCH) install-prep dh_install -a install-indep: $(BUILD_TARGETS_INDEP) install-prep - # Rename htmldoc dir - mv `ls -d $(CURDIR)/debian/doctmp/htmldoc-*` $(CURDIR)/debian/doctmp/htmldoc - dh_install -i @@ -156,7 +156,7 @@ binary-indep: build-indep install-indep dh_installchangelogs -i dh_installdocs -i dh_link -i - dh_compress -i + dh_compress -i -X.pdf -X.html dh_fixperms -i dh_installdeb -i dh_gencontrol -i @@ -172,7 +172,7 @@ binary-arch: build-arch install-arch dh_installman -a dh_installmenu -a dh_strip -a - dh_compress -a + dh_compress -a -X.pdf -X.html dh_fixperms -a dh_installdeb -a dh_shlibdeps -a -- 2.30.2